package com.zqq.glide.myview;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

import com.zqq.glide.R;
import com.zqq.glide.touchView.TouchActivity;

/**
 * 自定义底部弹窗-固定高度
 */
public class HeightBottomViewActivity extends AppCompatActivity implements DialogView {

    Button button;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bottom_view);
        button = (Button)this.findViewById(R.id.button);
        button.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {
                DialogMaxHeight dialogMaxHeight = new DialogMaxHeight(HeightBottomViewActivity.this, HeightBottomViewActivity.this);
                dialogMaxHeight.show();
            }
        });
    }

    @Override
    public void setText(String text) {
        Log.e("Tag-", text);
        button.setText(text);
    }

    @Override
    public void startActivity() {
        startActivity(new Intent(this, TouchActivity.class));
    }

}
